☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

collections_config_from_glob[*]

Table of contents

Description:

This key represents an individual glob pattern string in the collections_config_from_glob array.

The value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension .cloudcannon.collections.yml.

Appears in:
└── collections_config_from_glob
    └── [*]
Type:
string
Examples:

In this example, each Collection has its own Configuration File in the .cloudcannon/collections/ folder. The value of the collections_config_from_glob key tells CloudCannon to use all files in that folder that match the glob *.cloudcannon.collections.yml.

Copied to clipboard
collections_config_from_glob:
  - /.cloudcannon/collections/*.cloudcannon.collections.yml
{
  "collections_config_from_glob": [
    "/.cloudcannon/collections/*.cloudcannon.collections.yml"
  ]
}
Open in a new tab